﻿using BW.WMS.Application.Features.Product.Dtos;
using BW.WMS.Core.Result;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BW.WMS.Application.Features.Product.Interfces
{
    public interface IProductService
    {
        /// <summary>
        /// 获取货品列表
        /// </summary>
        /// <returns></returns>
        Task<ApiPage<ProductWithTypeDto>> GetProductList(InputProductDtos input);

        /// <summary>
        /// 新增货品信息
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<ApiResult<int>> CreateProduct(ProductInputDto input);

        /// <summary>
        /// 逻辑删除货品信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<ApiResult<int>> DeletedProduct(long id);

        /// <summary>
        /// 修改货品信息
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<ApiResult<int>> UpdateProduct(ProductUpdateInputDto input);

        /// <summary>
        /// 根据Id查询货品信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<ApiResult<ProductUpdateInputDto>> FindnProduct(long id);

    

    }
}
